import { translate } from '@/utils/i18n'
export const formItems = [
  {
    filed: 'name',
    type: 'input',
    label: translate('taskName')
  },
  {
    filed: 'memberName',
    type: 'input',
    label: translate('yhxx'),
    placeholder: translate('qsrglrysjh')
  }
]
export const queryFormConfig = {
  formItems,
  online: true
}

export const rules = {
  name: [
    { required: true, message: translate('qsrmc3'), trigger: 'blur' }
  ],
  types: [
    { type: 'array', required: true, message: translate('qxzxflx'), trigger: 'change' }
  ],
  ratio: [
    { required: true, message: translate('yjblUnitPlace'), trigger: 'blur' }
  ],
  beginMoney: [
    { required: true, message: translate('qsrzxddje'), trigger: 'blur' }
  ],
  orderNum: [
    { required: true, message: translate('qsrzdddje'), trigger: 'blur' }
  ],
  shareUsers: [
    { required: true, message: translate('qsrmc3'), trigger: 'change' }
  ],
  shareFm: [
    { required: true, message: translate('qxzfxfm'), trigger: 'change' }
  ],
  sharePic: [
    { required: true, message: translate('qxzhbmb'), trigger: 'change' }
  ],
  postion: [
    { required: true, message: translate('qrcodeAddrP'), trigger: 'change' }
  ],
  sortNum: [
    { required: true, message: translate('sortPlace'), trigger: 'blue' }
  ]

}
